package utils;

public class IsNumber {
    public static boolean isZNum(String s){
        String regex = "^[1-9]\\d*$";
        return s.matches(regex);
    }
    public static boolean isXNum(String s){
        String regex = "^([1-9]\\d*\\.?\\d*)|(0\\.\\d*[1-9]$)";
        return s.matches(regex);
    }
}
